﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Areas.Application.Models.MakePagePropertyModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Make Page Property
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
    using(Html.BeginForm())
    {%>
    <div class="formItem">
        <label>On Template: </label>
        <%=Html.DropDownListFor(m => m.Template, this.Model.GetPageTemplates())%>
        <br /><%=Html.ValidationMessageFor(m => m.Template)%>
    </div>
    <div class="formItem">
        <label>Tag: </label>
        <%=Html.TextBoxFor(m => m.Tag)%>
        <br /><%=Html.ValidationMessageFor(m => m.Tag)%>
    </div>
    <div class="formItem">
        <label>Css Class: </label>
        <%=Html.TextBoxFor(m => m.CssClass)%>
        <br /><%=Html.ValidationMessageFor(m => m.CssClass)%>
    </div>
    <div class="formItem">
        <label>Property Name: </label>
        <%=Html.TextBoxFor(m => m.PropertyName)%>
        <br /><%=Html.ValidationMessageFor(m => m.PropertyName)%>
    </div>
    <div class="formItem">
        <label>Property Type: </label>
        <%=Html.DropDownListFor(m => m.PropertyType, Model.GetPropertyTypes(), "-- Please Select --")%>
        <br /><%=Html.ValidationMessageFor(m => m.PropertyType)%>
    </div>
    <div class="formItem">
        <label>Property Value: </label>
        <%=Html.TextAreaFor(m => m.PropertyValue, new {rows = 6})%>
        <br /><%=Html.ValidationMessageFor(m => m.PropertyValue)%>
    </div>
    <div class="formItem">
        <button name="submit" value="create">Create</button>
        <button name="submit" value="cancel">Cancel</button>
    </div>
<%
    }
%>
</asp:Content>
